.flex-center {
    display: flex;
    align-items: center;
}
#init {
    border: 1px solid blue;
    width: 60px;
    text-align: center;
    color: blue;
    height: 33px;
    line-height: 33px;
    margin-left: 15px;
    cursor: pointer;
    user-select: none;
}
/* 滑动控件容器,灰色背景 */
#dragContainer {
    position: relative;
    display: inline-block;
    background: #f1f1f1;
    width: 300px;
    height: 35px;
    border: 1px solid #dadada;
    touch-action: none;
}
/* 滑块左边部分,绿色背景 */
#dragBg {
    position: absolute;
    background-color: #f60;
    width: 0px;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    overflow: hidden;
}
/* 滑动验证容器文本 */
#dragText {
    position: absolute;
    width: 100%;
    height: 100%;
    /* 文字水平居中 */
    /* 文字垂直居中,这里不能用百分比,因为百分比是相对原始line-height的,而非div高度 */
    line-height: 33px;
    /* 文本不允许选中 */
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    z-index: 2;
    background: #b3b3b3 linear-gradient(to left, transparent, #fff, transparent) no-repeat 0 0;
    background-size: 20% 100%;
    background-position: -30% -30%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 15px;
}
.dragText {
    animation: shine 4s infinite;
}

@keyframes shine {
    from {
        background-position: -30% -30%;
    }

    to {
        background-position: 140% 140%;
    }
}

/* 滑块 */
#dragHandler {
    position: absolute;
    width: 40px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

/* 滑块初始背景 */
.dragHandlerBg {
    background: #fff no-repeat center url("images/right.png");
    z-index: 5;
    border-right: 1px solid #dadada;
}

/* 验证成功时的滑块背景 有√*/
.dragHandlerOkBg {
    background: #f60 no-repeat center url("images/successful.png");
    background-size: 20px;
    width: 20px;
    height: 20px;
    border-radius: 80%;
    z-index: 5;
}

/*.drag-handler {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0px;*/
/*    width: 10px;*/
/*    height: 100%;*/
/*    background-color: #e8e8e8;*/
/*    border-radius: 4px;*/
/*    cursor: pointer;*/
/*    z-index: 3;*/
/*    animation: brushEffect 1s linear;*/
/*    transform: rotate(10deg);*/
/*}*/

.common-info {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 0.65);
    font-size: 14px;
    font-variant: tabular-nums;
    line-height: 1.5;
    list-style: none;
    -webkit-font-feature-settings: 'tnum';
    font-feature-settings: 'tnum';
    position: fixed;
    top: -30px;
    left: 50%;
    z-index: 1010;
    pointer-events: none;
    transform: translateX(-50%);
    max-width: 450px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #eaeaea;
    padding: 6px 8px;
    box-sizing: border-box;
    box-shadow: 0 0 5px rgba(1, 1, 1, 0.08);
    animation: slideDown 1s forwards; /* 应用动画 */
    display: flex;
    align-items: center;
}

.error-wrap {
    width: 16px;
    height: 16px;
    background: #fff no-repeat center url("images/error.png");
    display: flex;
    align-items: center;
    justify-content: center;
}
.common-info > .error-wrap {
    margin-right: 8px;
}
@keyframes slideDown {
    0% {
        top: -30px;
        opacity: 0;
    }
    100% {
        top: 139px;
        opacity: 1;
    }
}
@keyframes brushEffect {
    0% {
        opacity: 1;
        left: 20%;
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        opacity: 0.5;
        left: 50%;
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        opacity: 1;
        left: 80%;
    }
}
